package rayCaster;

import java.util.ArrayList;
import primitive3D.Primitive3D;


public class Scene {
	private ArrayList<Primitive3D> sceneFigures;
	
	public Scene(){
		sceneFigures = new ArrayList<Primitive3D>();
	}
	
	public Scene( ArrayList<Primitive3D> figures ){		
		sceneFigures = figures;
	}
	
	public void add( Primitive3D figure){
		sceneFigures.add(figure);
	}
	
	public ArrayList<Primitive3D> getFigures(){
		return sceneFigures;
	}

	public String toString(){
		StringBuffer str = new StringBuffer();
		str.append("SCENE CONTENTS , cantidad de figuras = " + sceneFigures.size());
		for( int i=0 ; i<sceneFigures.size(); i++){			
			str.append("\n====> FIGURE " + i + "\n");
			str.append(sceneFigures.get(i));
		}
		return str.toString();
	}
	
}
